package com.authine.cloudpivot.ext.dto.voucher;

import com.authine.cloudpivot.ext.enums.kingdee.AccountingDimensionEnum;
import com.authine.cloudpivot.ext.enums.kingdee.BusinessType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: liwei
 * @DateTime: 2021/7/7
 * @Description: TODO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Builder
@Schema(description = "凭证")
public class Voucher {

    @Schema(description = "ID")
    private String id;

    @Schema(description = "凭证ID")
    private String business_id;

    @Schema(description = "业务ID")
    private String voucher_Id;

    @Schema(description = "业务类型")
    private BusinessType business_type;

    @Schema(description = "摘要")
    private String remark;

    @Schema(description = "核算维度编码")
    private String ad_coding;

    @Schema(description = "核算维度编码类型")
    private AccountingDimensionEnum ad_status;

    @Schema(description = "科目编码")
    private String subject_coding;

    @Schema(description = "借方金额")
    private BigDecimal debit_amount;

    @Schema(description = "贷方金额")
    private BigDecimal credit_amount;

    @Schema(description = "账套名")
    private String account_name;

    @Schema(description = "是否删除")
    private Boolean del;

    @Schema(description = "版本号")
    private String version;

    @Schema(description = "创建时间")
    private Date createdTime;
}
